package com.hrt.web.orderInfor.service.impl;

import java.sql.Timestamp;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hrt.bean.OrderDetail;
import com.hrt.web.orderInfor.dao.WebOrderDetailDao;
import com.hrt.web.orderInfor.service.WebOrderDetailService;
@Transactional
@Service
public class WebOrderDetailServiceImpl implements WebOrderDetailService{
	@Autowired 
	private WebOrderDetailDao webOrderDetailDao;
	@Override
	public List<OrderDetail> getOrderDetailByOrderId(Long orderId) {
		return webOrderDetailDao.getOrderDetailByOrderId(orderId);
	}
	@Override
	public void saveOrderDetail(OrderDetail orderDetail) {
		webOrderDetailDao.saveEntity(orderDetail);
		
	}
	@Override
	public Timestamp getDate() {
		return webOrderDetailDao.getDate();
	}

}
